import Vue from 'vue'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css'
// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
import App from './App';
import router from './router'
import store from './store'
import './assets/css/simba.css'
import Mixin from './plugin/mixin';


Vue.config.productionTip = false

Vue.use(Antd);
// Vue.use(ElementUI);
Vue.mixin(Mixin);

// let menus = {	"network/hosts": {"view": "oui-app-hosts", "index": 50, "title": "Hostnames"},
//   "system/upgrade": {"view": "oui-app-upgrade", "title": "Backup / Upgrade", "index": 40},
//   "system/cron": {"view": "oui-app-cron", "title": "Scheduled Tasks", "index": 60},
//   "status/dmesg": {"view": "oui-app-dmesg", "title": "Kernel Log", "index": 40},
//   "system/ssh": {"view": "oui-app-ssh", "title": "SSH", "index": 30},
//   "network/firewall": {"view": "oui-app-firewall", "index": 60, "title": "Firewall"},
//   "examples/example": {"view": "oui-app-example", "title": "Example", "index": 10},
//   "system/admin": {"view": "oui-app-admin", "title": "Administration", "index": 20},
//   "system/system": {"view": "oui-app-system", "title": "System", "index": 10},
//   "network/routes": {"view": "oui-app-routes", "index": 70, "title": "Routes"},
//   "services": {"title": "Services", "index": 40},
//   "network": {"title": "Network", "index": 30},
//   "network/diagnostics": {"view": "oui-app-diagnostics", "title": "Diagnostics", "index": 80},
//   "status/routes": {"view": "oui-app-active-routes", "title": "Active Routes", "index": 20},
//   "system/users": {"view": "oui-app-users", "title": "Users", "index": 10},
//   "status/processes": {"view": "oui-app-processes", "title": "Processes", "index": 50},
//   "system": {"title": "System", "index": 20}, "status": {"title": "Status", "index": 10},
//   "network/wireless": {"view": "oui-app-wireless", "index": 20, "title": "Wireless"},
//   "status/syslog": {"view": "oui-app-syslog", "title": "System Log", "index": 30},
//   "system/leds": {"view": "oui-app-leds", "index": 70, "title": "LED Configuration"},
//   "system/acl": {"view": "oui-app-acl", "title": "ACL", "index": 11},
//   "network/interfaces": {"view": "oui-app-interfaces", "index": 10, "title": "Interfaces"},
//   "examples": {"title": "Examples", "index": 90},
//   "network/dhcp": {"view": "oui-app-dhcp", "index": 40, "title": "DHCP/DNS"}
// }
//
// Object.keys(menus).forEach(m => {
//   const paths = m.split('/')
//   console.log(paths)
//   //if (paths.length === 1) { menus[paths[0]] = raw[m] }
// })

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
